package com.zzyang.c2c.social.govern.reviewer.mapper;

import com.zzyang.c2c.social.govern.reviewer.domain.ReviewerTaskStatus;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

/**
 * ReviewerTaskStatus mapper
 *
 * @author zhuoziyang
 * @date 2021/7/26 22:59
 */
public interface ReviewerTaskStatusMapper {

    @Insert("insert into c2c_reviewer_task_status(reviewer_id,report_task_id,status) " +
            "values(#{reviewerId},#{reportTaskId},#{status})")
    void insert(ReviewerTaskStatus reviewerTaskStatus);

    @Update("update c2c_reviewer_task_status set status=#{status} where reviewer_id = #{reviewerId} and report_task_id = #{reportTaskId}")
    void updateStatus(ReviewerTaskStatus reviewerTaskStatus);

}
